#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int minOperations(int* nums, int numsSize) {
    if (numsSize == 1)
        return 0;
    int i = 0;
    int count = 0;
    for (i = 1; i < numsSize; i++)
    {
        while (nums[i] <= nums[i - 1])
        {
            nums[i]++;
            count++;
        }
    }
    return count;
}

int main()
{

	return 0;
}